package com.vy.stl.mapper;

import com.vy.stl.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @create: 2025/08/21 15:48
 * @description:
 */
public interface AdminMapper {
    Admin selectAdminByPhone(@Param("phone") String phone);

    /**
     * 条件查询
     * @param admin
     * @return
     */
    List<Admin> select(Admin admin);

    /**
     * 添加管理员
     * @param admin
     * @return
     */
    int insert(Admin admin);

    /**
     * 修改管理员
     * @param admin
     * @return
     */
    int editAdmin(Admin admin);
}
